package com.jiu345.users.service;

import com.jiu345.core.page.PageQuery;
import com.jiu345.core.page.TableDataInfo;
import com.jiu345.users.pojo.Address;

import java.util.Collection;
import java.util.List;


/**
 * package:IUserService
 *
 * @author MrLei QQ:235921049
 * desc:用户地址
 * @Date 2024.07.29 15:15
 */
public interface IAddressService {
    /*根据用户ID查询收货地址*/
    TableDataInfo<Address> queryPageList(Address bo, PageQuery pageQuery);
    /*新增收货地址*/
    Boolean insertByBo(Address bo);
    /*根据主键查询*/
    Address queryById(Long id);
    /*根据主键修改*/
    Boolean updateByBo(Address bo);

    Boolean updateStatus(Long id);
    /*删除地址*/
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
    /*设置默认地址*/

}
